//
//  Cusbtn.m
//  YUXiu
//
//  Created by wang on 16/6/27.
//  Copyright © 2016年 Wang. All rights reserved.
//

#import "Cusbtn.h"

@implementation Cusbtn
//70 20
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGRect rect ;
    rect.size.width = self.frame.size.width*5/7;
    rect.size.height = self.frame.size.height;
    rect.origin.x = 0;
    rect.origin.y = 0;
    
    return rect;
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGRect rect ;

    rect.size.width = self.frame.size.width*2/7;
    rect.size.height = self.frame.size.height;
    rect.origin.x = self.frame.size.width*5/7;
    rect.origin.y = 0;
    return rect;
    
}

@end
